package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbDataInfoDao;
import com.gtw.modules.entity.TbDataInfo;
import com.gtw.modules.sys.service.SysDataInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/4/17.
 */
@Service
public class SysDataInfoServiceImpl implements SysDataInfoService {
    @Autowired
    private TbDataInfoDao dataInfoDao;

    @Override
    public TbDataInfo queryObject(Integer id){
        return dataInfoDao.queryObject(id);
    }

    @Override
    public List<TbDataInfo> queryList(Map<String, Object> map){
        return dataInfoDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return dataInfoDao.queryTotal(map);
    }

    @Override
    public void save(TbDataInfo dataInfo){
        dataInfoDao.save(dataInfo);
    }

    @Override
    public void update(TbDataInfo dataInfo){
        dataInfoDao.update(dataInfo);
    }

    @Override
    public void delete(Integer id){
        dataInfoDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        dataInfoDao.deleteBatch(ids);
    }
}
